package com.maven.demo.service;

import java.sql.SQLException;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.maven.demo.dao.StudentDao;
import com.maven.demo.model.Student;
import com.maven.demo.model.User;

@Service
public class UserService {
	@Autowired
	private StudentDao studentDao;
	
	public List<Student> getStudent() throws SQLException{
		return studentDao.getStudent();
	} 
	
	public User getUser(){
        User u = new User();
        u.setId(1);
        u.setName("jayjay");
        return u	;
	}
}
